<?php
/**
 * __autoload()
 * 
 * @return
 */
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

// define('URL',"http://".$_SERVER['SERVER_NAME']."/themes/");  // SERVER
define('BASE',"http://".$_SERVER['SERVER_NAME']."/simple-blogy/");  //LOCALHOST
define('URL',"http://".$_SERVER['SERVER_NAME']."/simple-blogy/themes/");  //LOCALHOST
define('TPL_DIR',ROOT . DS . "themes". DS );
$current_theme = "default";



function __autoload($class_name)
{
   $filename = strtolower($class_name) . '.class.php';
   $file = ROOT.DS.'_phplib'.DS.$filename;

  if (file_exists($file) == false)
  { return false;}
 
include_once ($file);
}
function set($variable,$value){
 // extract(array($variable=>$value));
}
/** Configuration Variables **/

define ('DEVELOPMENT_ENVIRONMENT',true);

define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'my_db');//311973
define('PREFIX','my_');

$db = MySqliDb::instance(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME);   


?>